import request from '@/utils/request'

// 查询附加服务列表
export function listAttachItem(query) {
  return request({
    url: '/taskhub/attachItem/list',
    method: 'get',
    params: query
  })
}

// 查询附加服务详细
export function getAttachItem(id) {
  return request({
    url: '/taskhub/attachItem/' + id,
    method: 'get'
  })
}

// 新增附加服务
export function addAttachItem(data) {
  return request({
    url: '/taskhub/attachItem',
    method: 'post',
    data: data
  })
}

// 修改附加服务
export function updateAttachItem(data) {
  return request({
    url: '/taskhub/attachItem',
    method: 'put',
    data: data
  })
}

// 删除附加服务
export function delAttachItem(id) {
  return request({
    url: '/taskhub/attachItem/' + id,
    method: 'delete'
  })
}
